package com.haoshuang.zhouzhoubang.ui.adapter

import com.chad.library.adapter4.BaseQuickAdapter
import com.haoshuang.zhouzhoubang.R
import com.haoshuang.zhouzhoubang.databinding.ItemTkBinding
import com.haoshuang.zhouzhoubang.model.bean.ReturnBean
import com.mufeng.libs.base.BaseBindingHolder
import com.mufeng.libs.base.BaseBindingQuickAdapter


/**
 * 订单模块中的订单列表适配器
 * */
class TkAdapter(data: MutableList<ReturnBean>) :
    BaseBindingQuickAdapter<ReturnBean, ItemTkBinding>(data){

    override fun onBindViewHolder(holder: BaseBindingHolder, position: Int, item: ReturnBean?) {
        val binding = ItemTkBinding.bind(holder.itemView)
        binding.apply {
            tvName.text=item?.cate_name
            tvPrice.text="￥"+item?.money
        }
    }

}